package com.example.easyscript;

import com.example.easyscript.utils.SpringContextHolder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan("com.example.easyscript.mapper")
public class EasyScriptApplication {
    public static void main(String[] args) {
        SpringApplicationBuilder builder = new SpringApplicationBuilder(EasyScriptApplication.class);
        ConfigurableApplicationContext applicationContext = builder.headless(false).run(args);
        SpringContextHolder.setApplicationContext(applicationContext);
    }
}
